package com.ctshk.common.enums;

/**
 * @author
 */
public enum MainDataManualSystemCode {

    MANUAL_1(61194370073755648L, "港中旅預訂"),
    MANUAL_2(61401235575537664L, "12306預訂"),
    MANUAL_3(61480049945083904L, "香港高速鐵路票務系統"),

;

    private Long code;
    private String msg;

    MainDataManualSystemCode(Long code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static String parseValue(Long code){
        for (MainDataManualSystemCode systemCode : MainDataManualSystemCode.values()) {
            if (systemCode.code.equals(code)) {
                return systemCode.getMsg();
            }
        }
        return null;
    }
}
